package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/travelCommends")
public class TravelCommendController {

    @Autowired
    private ITravelCommendService travelCommendService;
    /**
     * 请求游记的接口
     * 请求路径	/travelCommends
     * 请求方式	get
     * 请求参数	type
     * 返回结果	list
     */
    @GetMapping
    public PageInfo query(TravelCommendQueryObject qo) {
        return travelCommendService.queryForApp(qo);
    }

}
